<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>这是人事创建成员接口的页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  
  <body>
  <!-- 创建成员接口 User user = new User("4", "jack", String.valueOf(1),"13986086293","4057046319@qq.com","咨询顾问","1"); -->
    <!--这是一个创建成员的jsp -->
   <form action="createUser">
   <table border="1">
  	<caption class="cap">行为记录表</caption>
    <tr class="info">
	      <th>姓名</th>
	      <th>账号</th>
	      <th>职务</th>
	      <th>部门</th>
	      <th>性别</th>
	      <th>手机</th>
	      <th>个人邮箱</th>
    </tr>
    <tr>
    	<td width="3%"><input type="text" name="name" placeholder="姓名（必填）"/></td>
    	<td width="5%"><input type="text" name="zhanghao" placeholder="账号（必填）"/></td>
    	<td width="5%"><input type="text" name="position" placeholder="职务"/></td>
    	<td width="5%"><input type="text" name="department" placeholder="部门（必填）"/></td>
    	<td width="5%"><input type="text" name="gender" placeholder="性别"/></td>
    	<td width="5%"><input type="text" name="mobile" placeholder="手机"/></td>
    	<td width="3%"><input type="text" name="email" placeholder="个人邮箱"/></td>
    </tr>
   <tr>
       <td colspan="8" align="center">
       <input type="button" value="新增成员"/>
      </td>
   </tr>
  </table>
  </form>
  <p></p>
  
  <!-- 查询出bos_user中的数据 -->
   <table border="1">
  	<caption class="cap">查询出成员信息</caption>
    <tr class="info">
	      <th>userId</th>
	      <th>姓名</th>
	      <th>密码</th>
	      <th>电话</th>
	      <th>什么身份</th>
	      <th>部门</th>
	      <th>邮箱</th>
	      <th>职位</th>
	      <th>性别</th>
	      <th>是否在职</th>
	      <th>入职时间</th>
    </tr>
    <c:forEach items="${requestScope.users}" var="user">
   <!-- //userId,name,password,mobile,power,department,email,position,gender,status,entryTime -->
    <tr>
    	<td width="3%">${user.userId}</td>
    	<td width="5%">${user.name}</td>
    	<td width="5%">${user.password}</td>
    	<td width="5%">${user.mobile}</td>
    	<td width="5%">${user.power}</td>
    	<td width="5%">${user.department}</td>
    	<td width="5%">${user.email}</td>
    	<td width="5%">${user.position}</td>
    	<td width="3%">${user.gender}</td>
    	<td width="4%">${user.status}</td>
    	<td width="3%">${user.entryTime}</td>
    </tr>
    </c:forEach>
   
  </table>
  
  </body>
</html>
